CVE-2025-40331
sctp: Prevent TOCTOU out-of-bounds write
Description
In the Linux kernel, the following vulnerability has been resolved: sctp: Prevent TOCTOU out-of-bounds write For the following path not holding the sock lock, sctp_diag_dump() -> sctp_for_each_endpoint() -> sctp_ep_dump() make sure not to exceed bounds in case the address list has grown between buffer allocation (time-of-check) and write (time-of-use).
INFO
Published Date :
Dec. 9, 2025, 4:17 p.m.
Last Modified :
Dec. 9, 2025, 6:36 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Solution
- Update the Linux kernel to the patched version.
- Verify the sctp module is secured.
- Monitor for any further related issues.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2025-40331.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2025-40331 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2025-40331
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2025-40331 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2025-40331 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Dec. 09, 2025
Action Type Old Value New Value Added Description In the Linux kernel, the following vulnerability has been resolved: sctp: Prevent TOCTOU out-of-bounds write For the following path not holding the sock lock, sctp_diag_dump() -> sctp_for_each_endpoint() -> sctp_ep_dump() make sure not to exceed bounds in case the address list has grown between buffer allocation (time-of-check) and write (time-of-use). Added Reference https://git.kernel.org/stable/c/2fe08fcaacb7eb019fa9c81db39b2214de216677 Added Reference https://git.kernel.org/stable/c/3006959371007fc2eae4a078f823c680fa52de1a Added Reference https://git.kernel.org/stable/c/584307275b2048991b2e8984962189b6cc0a9b85 Added Reference https://git.kernel.org/stable/c/72e3fea68eac8d088e44c3dd954e843478e9240e Added Reference https://git.kernel.org/stable/c/89eac1e150dbd42963e13d23828cb8c4e0763196 Added Reference https://git.kernel.org/stable/c/95aef86ab231f047bb8085c70666059b58f53c09 Added Reference https://git.kernel.org/stable/c/b106a68df0650b694b254427cd9250c04500edd3 Added Reference https://git.kernel.org/stable/c/c9119f243d9c0da3c3b5f577a328de3e7ffd1b42